#include <stdio.h>
int main()
{
    int a[6] = {1,2,3,4,5,6};
    int *p1 = a;
    printf("The value of the third element is %d\n", a[2]);
    printf("The value of the third element is %d\n", *&a[2]);
    printf("The value of the third element is %d\n", *(p1+2));
    printf("The value of the third element is %d\n", p1[2]);
	int *p2;
	p2 = &a[2];
	printf("The value of the third element is %d\n", *p2);
	printf("The value of the third element is %d\n", p2[0]);
	printf("The value of the third element is %d\n", *&*p2);
	printf("The value of the third element is %d\n", *&*&*&*&*&*&*p2);
}

